<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
   <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>New Booking Confirm</title>
</head>
<body>
<%@ include file="header.jsp" %>
<table>
<tr>
<td width=15%></td>
<td class="menuborder" width=20%>
<c:if test="${sessionScope.roleUser=='Admin'}">
	<table id="head">
			<tr>
<!-- 				<td><h2 id="header">ISS Facilities Booking</h2></td> -->
				<td>
<!-- 				<input type="hidden" name="welcome" id="show_greeting" /> -->
				<c:if test="${!empty sessionScope.LoggedinUser.username}">
				<h5>Welcome ${sessionScope.LoggedinUser.username}</h5>
				</c:if>
				</td>
			</tr>
		</table>
		<table id="content">
			<tr>
				<td><h2 id="header">MENU</h2></td>
			</tr>
			<tr>
				<td><a href="MakeABooking.jsp">Make a Booking</a></td>
			</tr>
			<tr>
				<td><a href="BookDetailsController">View Booking Details</a></td>
			</tr>
			<tr>
				<td><a href="BookingHistoryController">View Booking History</a></td>
			</tr>
			<tr>
				<td><a href="ManageStaff.jsp">Manage Staff</a></td>
			</tr>
			<tr>
				<td><a href="LoadFacility">Manage Facilities</a></td>
			</tr>
			<tr>
				<td><a href="Login.jsp">Sign Out</a>
				</td>
			</tr>
		</table>
	</c:if>
	<c:if test="${sessionScope.roleUser=='Manager'}">
		<table id="head">
			<tr>
			<td>
				<c:if test="${!empty sessionScope.LoggedinUser.username}">
					<h5>Welcome ${sessionScope.LoggedinUser.username}</h5>
				</c:if>
			</td>
			</tr>
		</table>
		<table id="content">
			<tr>
				<td><h2 id="header">MENU</h2></td>
			</tr>
			<tr>
				<td><a href="MakeABooking.jsp">Make a Booking</a></td>
			</tr>
			<tr>
				<td><a href="BookDetailsController">View Booking Details</a></td>
			</tr>
			<tr>
				<td><a href="BookingHistoryController">View Booking History</a></td>
			</tr>
			<tr>
				<td><a href="ReviewController">Review Booking</a></td>
			</tr>
			<tr>
				<td><a href="Login.jsp">Sign Out</a></td>
			</tr>
		</table>
	</c:if>
	<c:if test="${sessionScope.roleUser=='Staff'}">
		<table id="head">
			<tr>
<!-- 				<td><h2 id="header">ISS Facilities Booking</h2></td> -->
				<c:if test="${!empty sessionScope.LoggedinUser.username}">
					<h5>Welcome ${sessionScope.LoggedinUser.username}</h5>
				</c:if>
			</tr>
			<tr></tr>
		</table>
		<table id="content">
			<tr></tr>
			<tr></tr>
			<tr>
				<td><h2 id="header">MENU</h2></td>
			</tr>
			<tr>
				<td><a href="MakeABooking.jsp">Make a Booking</a></td>
			</tr>
			<tr>
				<td><a href="BookDetailsController">View Booking Details</a></td>
			</tr>
			<tr>
				<td><a href="BookingHistoryController">View Booking History</a></td>
			</tr>
			<tr>
				<td><a href="Login.jsp">Sign out</a></td>
			</tr>
		</table>
</c:if>
</td>
<td width=55%>

<input type="hidden" value="${sessionScope.LoggedinUser.userId}">

<h2>Booking Details</h2>
<form action="/JavaCA/MakeABookingSubmit" method="post">
<input id="t1" type=hidden value="${type}">
<table border="1">

<tr  bgcolor="EBE8E9">
<td>FacilityName:</td>
<td><c:out value="${facilityName}" /></td>
</tr>

<tr  bgcolor="EBE8E9">
<td>Type:</td>
<td><c:out value="${type}" /></td>
</tr>

<tr bgcolor="EBE8E9">
<td>FromDate:</td>
<td><c:out  value="${fromDate}" /></td>
</tr>

<tr  bgcolor="EBE8E9">
<td>ToDate:</td>
<td><c:out value="${toDate}" /></td>
</tr>

<tr>
<td>Emergency:</td> 
<td>
<c:out value="${emergency}"/></td>
</tr>

<tr>
<td>Priority:</td>
<td>
<c:out value="${priorityDisplay}"/></td>
</tr>

<tr>
<td>Reason:</td>
<td><c:out value="${reason}" /></td>
</tr>

<tr>
<td>BookedOn:</td>
<td><c:out value="${bookedOn}" /></td>
</tr>

<!-- <tr> -->
<!-- <td>BookedBy:</td> -->
<%-- <td><c:out value="${bookedBy}" /></td> --%>
<!-- </tr> -->

<tr bgcolor="EBE8E9">
<td>Status:</td>
<td><c:out value="${status}" /></td>
</tr>

<!-- <tr> -->
<!-- <td>ModifiedOn:</td> -->
<%-- <td><c:out value="${modifiedOn}"/></td> --%>
<!-- </tr> -->
<!-- <tr> -->
<!-- <td>ModifiedBy:</td> -->
<%-- <td><c:out value="${modifiedBy}" /></td> --%>
<!-- </tr> -->

<tr>
<td>Comment:</td>
<td><c:out value="${comment}" /></td>
</tr>

</table><br/><br/>
<input type="submit" value="Confirm" align="left">
</form>
</td>
<td width=10%></td>
</tr>
</table>
<%@ include file="footer.jsp" %>
</body>
</html>